# -*- coding: utf-8 -*-
import requests

def orders(start_time, order_scene = 1):#订单查询接口，默认20分钟
    url = "http://api.zhetaoke.com:10000/api/open_dingdanchaxun.ashx"
    params = {
        "appkey":"47009b493b694ef5b6cb0a388e3303e1",
        "sid":"353",
        "order_scene":order_scene,
        "start_time":start_time,
        "span":1200
        }
    res = requests.get(url, params)
    return res.text

if __name__ == "__main__":
    start_time = "2020-03-13 09:30:50"
    print(orders(start_time))
